cnt = 0

for b in range(0, 256):
    for r in range(0, b):
        for g in range(0, b):
            cnt += 1
print(cnt)
